package com.nuo.admin.base.mapper;

import com.nuo.admin.base.entity.SysRolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author LGC
* @description 针对表【sys_role_permission(角色权限表)】的数据库操作Mapper
* @createDate 2022-02-09 11:35:10
* @Entity com.nuo.admin.base.entity.SysRolePermission
*/
@Mapper
public interface SysRolePermissionMapper extends BaseMapper<SysRolePermission> {


    /**
     * 根据菜单ID和角色ID获取权限ID集合
     *
     * @param menuId
     * @param roleId
     * @return
     */
    List<Long> listPermIds(@Param("menuId")Long menuId,@Param("roleId") Long roleId);
}




